package com.example.bgmachine.bgmachine.coms;

public class LogUtils {

    public static String getMethodInfo() {
        StackTraceElement[] elements = Thread.currentThread().getStackTrace();
        if (elements.length < 4) {
            return "";
        }
        StackTraceElement element = elements[3];
        return element.getClassName() + "." + element.getMethodName() + "()" + ":" + element.getLineNumber();
    }

}
